import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class GLFilterViewModel extends ChangeNotifier{
  // 五谷蛋白
  bool _isGlutenFree = false;
  // 乳糖
  bool _isLactoseFree = false;
  // 普通素食
  bool _isVegetarial = false;
  // 严格素食
  bool _isVegan = false;


  bool get isGlutenFree => _isGlutenFree;

  set isGlutenFree(bool value) {
    _isGlutenFree = value;
    notifyListeners();
  }

  bool get isLactoseFree => _isLactoseFree;

  set isLactoseFree(bool value) {
    _isLactoseFree = value;
    notifyListeners();
  }
 

  bool get isVegetarial => _isVegetarial;

  set isVegetarial(bool value) {
    _isVegetarial = value;
    notifyListeners();
  }

  bool get isVegan => _isVegan;

  set isVegan(bool value) {
    _isVegan = value;
    notifyListeners();
  }
}